<template>
  <div class="blackuser">
   <header>
      <span>
        <span>账号检索</span>
        <el-input v-model="user" placeholder="请输入关键字" style="width:200px"></el-input>
      </span>
    </header>
    <div style="textAlign:right;width:100%">
      <div style="float:right;width:100%"> <el-button  icon="el-icon-search" @click="searchAll" >搜索</el-button></div>
    </div>
     <div>
       <span  @click="adduser" style="float:right">添加账号</span>
    </div>
    <div>
      <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column prop="date" label="编号" ></el-table-column>
      <el-table-column prop="date" label="用户账号" ></el-table-column>
      <el-table-column prop="date" label="是否为初始密码" ></el-table-column>
      <el-table-column prop="date" label="创建日期" >
        <template slot-scope="scope">{{$getDate(scope.row.orderTime)}}</template>
      </el-table-column>
      <el-table-column prop="date" label="操作" >
        <el-button type="text" @click="orderUnti(scope.row.orderid)">启用</el-button>
      </el-table-column>
    </el-table>
    </div>

  </div>
</template>

<script>
  export default {
    data() {
      return {
        pickerOptions: {
          shortcuts: [{
            text: '最近一周',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit('pick', [start, end]);
            }
          }, {
            text: '最近一个月',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit('pick', [start, end]);
            }
          }, {
            text: '最近三个月',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit('pick', [start, end]);
            }
          }]
        },
        value1: '',
        value2: '',
        user:'',
        tableData:[],
        date:'',
        options:[],
      };
    },
    methods:{
      searchAll(){},
      adduser(){}
    }
  };
</script>